package com.kun.dao;

import com.kun.entity.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoDao {
    int deleteByPrimaryKey(Integer userId);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    List<UserInfo> findAll(UserInfo info);

    UserInfo login(@Param("userName") String userName, @Param("userPwd")String userPwd);

    int batchDelete(Integer[] userIds);

    boolean saveBatch(List<UserInfo> list);

    List<UserInfo> findUserName();
}